package com.example.spring011.Controller;

import com.example.spring011.Bean.Person;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@RestController
@Controller
public class HelloController {

    @Autowired
    private Person person;

    @RequestMapping("/hello")
    public Person test1(){
        return person;
    }


}
